<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>{$configs.WEBNAME}</title>   
        {include file="public/web_top"}
    </head>
    <body>
    <div class="index_flash">
        <div class="swiper-container">
            <div class="swiper-wrapper">
               {volist name="$flashRes1" id="vo"}
               <a href="{$vo.url}" title="{$vo.name}"  class="swiper-slide">
                  <img src="__ROOT__/{$vo.imgpath}" alt="{$vo.name}" />
               </a>
               {/volist}
            </div>
        </div>
    </div>  
    {php} $typedb = db("type");{/php}
    {volist name="$typeRes[1]" id="vo" offset="0" length="1"}
    <div class="list1">
        <h2>
            <div class="xian"></div>
            <div class="txt"><span>{$vo.name}</span></div>
        </h2>
        {php}
            $types = $typedb->where("cid","=",$vo['id'])->order("vieworder asc")->select();
        {/php}
        <div class="items">
            {volist name="$types" id="vo2"}
            {php}
                $imgpath = "__PUBLIC__/m/img/1.png";
                if($vo2['imgpath']) $imgpath = "__ROOT__/".$vo2['imgpath'];
            {/php}
            <a href="{:url('mobile/index/lst',array('cid'=>$vo.id,'sid'=>$vo2.id))}" class="item">
                <div class="pic">
                    <img src="{$imgpath}" />
                </div>
                <div class="txt">{$vo2.name}</div>
            </a>
            {/volist}
        </div>
    </div>
    {/volist}
    <div class="ad1">
        {volist name="$flashRes2" id="vo" offset="0" length="2"}
        <a href="{$vo.url}"><img src="__ROOT__/{$vo.imgpath}" class="pic1"></a>
        {/volist}
    </div>    
    {volist name="$typeRes[1]" id="vo" offset="1" length="20"}
    <div class="list1">
        <h2>
            <div class="xian"></div>
            <div class="txt"><span>{$vo.name}</span></div>
        </h2>
        {if condition="$vo.imgpath2"}
        <div class="ad2">
            <a href="javascript:;"><img src="{$vo.imgpath2}" class="pic2"></a>
        </div>
        {/if}
        {php}
            $types = $typedb->where("cid","=",$vo['id'])->order("vieworder asc")->select();
        {/php}
        <div class="items">
            {volist name="$types" id="vo2"}
            {php}
                $imgpath = "__PUBLIC__/m/img/1.png";
                if($vo2['imgpath']) $imgpath = "__ROOT__/".$vo2['imgpath'];
            {/php}
            <a href="{:url('mobile/index/lst',array('cid'=>$vo.id,'sid'=>$vo2.id))}" class="item">
                <div class="pic">
                    <img src="{$imgpath}" />
                </div>
                <div class="txt">{$vo2.name}</div>
            </a>
            {/volist}
        </div>
    </div>
    {/volist}
    <a href="{:url('mobile/contact/index')}" class="bt" style="color: #ddd;">我要做一个一样的...</a>
    </body>
    <script src="__PUBLIC__/m/js/jquery-1.11.3.min.js"></script>
    <script src="__PUBLIC__/m/js/swiper.min.js"></script>
    <script>
        var swiper = new Swiper('.index_flash .swiper-container', {
          spaceBetween: 30,
          centeredSlides: true,
          autoplay: {
            delay: 2500,
            disableOnInteraction: false,
          },
        }); 
    </script>
</html>
